From: Giovanni Campagna Date: Tue, 14 Jun 2011 16:24:59 +0000 (+0200) Subject: NetworkMenu: place network items in the right position X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8149 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4132ccae334119a25a8bb1f00c0634e26f29c268;p=gnome-shell.git NetworkMenu: place network items in the right position _createNetworkItem was always appending access point at the end of the menu when their position was < 5 (NUM_VISIBLE_NETWORKS), ignoring the presence or absence of _overflowItem, which thus ended in the middle of the network list. Fix that. https://bugzilla.gnome.org/show_bug.cgi?id=652313 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 454b67392..3983703c5 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1531,7 +1531,7 @@ NMDeviceWireless.prototype = { })); } if (position < NUM_VISIBLE_NETWORKS) - this.section.addMenuItem(apObj.item); + this.section.addMenuItem(apObj.item, position); else { if (!this._overflowItem) { this._overflowItem = new PopupMenu.PopupSubMenuMenuItem(_("More..."));